2026-01-20 Using a Supercomputer

  • $HOME
  • $SCRATCH
  • $PROJECTDIR - shared between all project members All storage not backed up

SLURM

Resources (nodes) are assigned to partitions. Find partitions with sinfo We can find out what jobs are submitted with squeue Use the --me arg to show just my jobs Cancel job with scancel You submit bash scripts to SLURM to run with sbatch. Load modules with module load <module> after finding modules with module spider <search>. Loaded modules are inherited by launched jobs.

Amdahl’s Law

S=(s+p)s+(pn)S = \frac{(s+p)}{s+(\frac{p}{n})} Where SS is the speedup. E.g. S=3S=3 means it is 3 times faster in parallel on nn nodes.

Profiling

Build program with -pg and then use gprof to read profile.

Matmul optimisation

Tiling